package com.skywaregroup.arenal;

import javax.ws.rs.WebApplicationException;
//import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;

public class BadRequestException extends WebApplicationException
{
    private static final long serialVersionUID = 1L;
    public BadRequestException()
    {
        this("Supplied key is incorrect or missing.", "Arenal");
    }

    public BadRequestException(String message, String realm)
    {
        super(Response.status(Status.BAD_REQUEST)
                .entity(message).build());
    }
}
